package com.ali.sofa.domain;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Date;
import java.util.List;
import java.util.Map;

@JacksonXmlRootElement //可以把该类以xml的方式返回给前端
@Data
@ConfigurationProperties(prefix = "person")
public class Person {
    private String name;
    private Integer age;
    private Date birthDay;

    private Boolean like;
    private Child child;
    private List<Dog> dogs;

    private Map<String,Cat> cats;

}
